package com.campus.counseling.model;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ModelMetrics {
    private double mse;  // 均方误差
    private double mae;  // 平均绝对误差
    private double accuracy;  // 准确率
    private double precision;  // 精确率
    private double recall;  // 召回率
    private double f1Score;  // F1分数
    
    @Override
    public String toString() {
        return String.format(
            "ModelMetrics(mse=%.4f, mae=%.4f, accuracy=%.4f, precision=%.4f, recall=%.4f, f1Score=%.4f)",
            mse, mae, accuracy, precision, recall, f1Score
        );
    }
} 